var Express = require('express'),
    Router = Express.Router(),

    sequencePolicy = require('../policies/policy'),

    sequenceController = require('../controllers/sequence.controller');

Router.route('/createSequence').all(sequencePolicy.isAllowed).post(sequenceController.createSequence);

Router.route('/getUserSequence').all(sequencePolicy.isAllowed).post(sequenceController.getUserSequence);

Router.route('/getSequenceCSV').all(sequencePolicy.isAllowed).post(sequenceController.getSequenceCSV);

Router.route('/getAllUsersSequence').all(sequencePolicy.isAllowed).get(sequenceController.getAllUsersSequence);

module.exports = Router;


